package com.hang.mapstruct;


import com.hang.entity.Department;
import com.hang.model.dto.request.DepartmentModelReq;
import org.mapstruct.Mapper;

/**
 * @author lyh
 * @date 2022/11/23
 */

@Mapper(componentModel = "spring")
public interface DepartmentMapStruct {
    Department departmentModelReqToDepartment(DepartmentModelReq departmentModelReq);

    default Long stringToLong(String str){return Long.valueOf(str);}
}